package com.mall.dingdan.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2020-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Dingdan对象", description="")
public class Dingdan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商品id")
    private Long shangpinId;

    @ApiModelProperty(value = "收货地址")
    private String accpetAddress;

    @ApiModelProperty(value = "是否支付 0 未支付 1 已支付")
    @TableField("isPay")
    private Integer isPay;

    @ApiModelProperty(value = "是否收货 0 未收货 1 已收货")
    @TableField("isAccept")
    private Integer isAccept;

    @ApiModelProperty(value = "是否发货 0 未发货 1 已发货")
    @TableField("isSend")
    private Integer isSend;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "商品名")
    @TableField(value = "productName")
    private String productName;

    @ApiModelProperty(value = "收货人姓名")
    private String acceptName;

    @ApiModelProperty(value = "收货人电话号码")
    private String acceptPhone;
}
